/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <cstring>
using namespace std;

int main_1082()
{
    char numbers[11][5]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
    char units[5][5]={"Shi","Bai","Qian","Wan","Yi"};
    char str[11]={0};
    scanf("%s",str);
    int len=strlen(str);
    int left=0,right=len-1;
    if (str[0]=='-')
    {
        printf("Fu");
        ++left;
    }
    while ((right-left)>=4)
    {
        right-=4;
    }
    while (left<len)
    {
        bool flag=false;
        bool isPrint=false;
        while (left<=right)
        {
            if (left>0&&str[left]=='0')
            {
                flag=true;
            }
            else
            {
                if (flag)
                {
                    printf(" ling");
                    flag=false;
                }
                if (left>0)
                {
                    printf(" ");
                }
                printf("%s",numbers[str[left]-'0']);
                isPrint=true;
                if (left!=right)
                {
                    printf(" %s",units[right-left-1]);
                }
            }
        ++left;
        }
        if (isPrint&&right!=len-1)
        {
            printf(" %s",units[(len-1-right)/4+2]);
        }
        right+=4;
    }
	return 0;
}
